#include <stdio.h>
#define Vertex int
void sort(Vertex queue[], int rear)
{
    int i = 0;
    int j = 0;
    for (i = 0; i < rear - 1; i++)
    {
        for (j = i + 1; j < rear; j++)
        {
            if (queue[i] > queue[j])
            {
                Vertex temp = queue[i];
                queue[i] = queue[j];
                queue[j] = temp;
            }
        }
    }
}
int main()
{
    Vertex queue[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
    sort(queue, 10);
    for (int i = 0; i < 10; i++)
    {
        printf("%d ", queue[i]);
    }
    return 0;
}